package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "order_rx_main")
public class RxMain implements Serializable {

	private static final long serialVersionUID = 1871069115762141572L;
	@Id
	@Column(name = "rx_order_nO_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String rxOrderNO;
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255)")
	private String orderNO;
	@Column(name = "dialectical_nvarchar", columnDefinition = "varchar(255)")
	private String dialectical;
	@Column(name = "dis_ids_nvarchar", columnDefinition = "varchar(255) comment '多ID用英文逗号连接（西医使用）'")
	private String disIds;
	@Column(name = "dis_code_nvarchar", columnDefinition = "varchar(255) comment '西医疾病编码'")
	private String disCode;
	@Column(name = "z_dialectical_nvarchar", columnDefinition = "varchar(255) comment '中医疾病名称'")
	private String zDialectical;
	@Column(name = "z_dis_code_nvarchar", columnDefinition = "varchar(255) comment '中医疾病编码'")
	private String zDisCode;
	@Column(name = "z_dialectics_nvarchar", columnDefinition = "varchar(255) comment '中医辨证名称'")
	private String zDialectics;
	@Column(name = "z_dialectics_code_nvarchar", columnDefinition = "varchar(255) comment '中医辨证编码'")
	private String zDialecticsCode;
	@Column(name = "dialectical_remark_nvarchar", columnDefinition = "varchar(255)")
	private String dialecticalRemark;
	@Column(name = "suggest_nvarchar", columnDefinition = "varchar(255)")
	private String suggest;
	@Column(name = "med_way_nvarchar", columnDefinition = "varchar(255)")
	private String medWay;
	@Column(name = "d_type_tinyint", columnDefinition = "tinyint(1) comment '1=中医,2=西医'")
	private Integer dType;
	@Column(name = "a_void_nvarchar", columnDefinition = "varchar(255)")
	private String aVoid;
	@Column(name = "med_time_nvarchar", columnDefinition = "varchar(255)")
	private String medTime;
	@Column(name = "ask_doctor_nvarchar", columnDefinition = "varchar(255)")
	private String askDoctor;
	@Column(name = "open_doctor_nvarchar", columnDefinition = "varchar(255)")
	private String openDoctor;
	@Column(name = "chk_dc_id_bigint", columnDefinition = "bigint(20)")
	private Long chkDcId;
	@Column(name = "chk_doctor_nvarchar", columnDefinition = "varchar(255)")
	private String chkDoctor;
	@Column(name = "chk_status_tinyint", columnDefinition = "tinyint(1) comment '待审核=0,审核通过=1,审核失败=2,'")
	private Integer chkStatus;
	@Column(name = "failure_reason_nvarchar", columnDefinition = "varchar(255) comment '原因多个，英文逗号“,”连接'")
	private String failureReason;
	@Column(name = "failure_remark_nvarchar", columnDefinition = "varchar(255)")
	private String failureRemark;
	@Column(name = "chk_time_datetime", columnDefinition = "datetime(3)")
	private Date chkTime;
	@Column(name = "badge_nvarchar", columnDefinition = "varchar(255)")
	private String badge;
	@Column(name = "pay_type_tinyint", columnDefinition = "tinyint(1) comment '支付宝=1,微信=2,医保=3,'")
	private Integer payType;
	@Column(name = "system_status_tinyint", columnDefinition = "tinyint(1) comment '系统状态,未付款 = 1,已付款 = 2,取消 = 3'")
	private Integer systemStatus;
	@Column(name = "order_pay_time_datetime", columnDefinition = "datetime(3)")
	private Date orderPayTime;
	@Column(name = "transaction_id_nvarchar", columnDefinition = "varchar(255)")
	private String transactionID;
	@Column(name = "oc_id_bigint", columnDefinition = "bigint(20)")
	private Long ocId;
	@Column(name = "sale_price_money", columnDefinition = "decimal(10,2) comment '含运费'")
	private BigDecimal salePrice;
	@Column(name = "freight_money", columnDefinition = "decimal(10,2)")
	private BigDecimal freight;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "u_open_tid_nvarchar", columnDefinition = "varchar(255)")
	private String uOpenTid;
	@Column(name = "order_back_tinyint", columnDefinition = "tinyint(1) comment '0初始状态,1已退款'")
	private Integer orderBack;
	@Column(name = "diseases_type_int", columnDefinition = "int(11) comment '0：普通，1：急性病，2：慢性病，3：未知'")
	private Integer diseasesType;
	@Column(name = "mobility_int", columnDefinition = "int(11) comment '0：否，1：是，3：未知'")
	private Integer mobility;
	@Column(name = "long_medical_int", columnDefinition = "int(11) comment '0：否，1：是，3：未知'")
	private Integer longMedical;
	@Column(name = "pres_eff_ec_days_int", columnDefinition = "int(11) comment '单位天'")
	private Integer presEffEcDays;
	@Column(name = "zyszms_nvarchar", columnDefinition = "varchar(1000) comment '四诊检查'")
	private String zyszms;
	@Column(name = "bzfx_nvarchar", columnDefinition = "varchar(1000) comment '辨证分析'")
	private String bzfx;
	@Column(name = "jzzdsm_nvarchar", columnDefinition = "varchar(1000) comment '门诊诊断说明'")
	private String jzzdsm;
	@Column(name = "clcs_nvarchar", columnDefinition = "varchar(1000) comment '处理措施'")
	private String clcs;
	@Column(name = "sfxylygc_bit", columnDefinition = "bit comment '是否需要留院（入院/转院）观察'")
	private Boolean sfxylygc;
	@Column(name = "recipe_doc_signature_value_nvarchar", columnDefinition = "text comment '开方医生数字签名值'")
	private String recipeDocSignatureValue;
	@Column(name = "recipe_doc_signcertificate_nvarchar", columnDefinition = "text comment '开方医生数字证书'")
	private String recipeDocSigncertificate;
	@Column(name = "recipe_doc_signature_xml_nvarchar", columnDefinition = "text comment '开方医生数字签名对象数据结构XML'")
	private String recipeDocSignatureXml;
	@Column(name = "recipe_doc_time_stamp_nvarchar", columnDefinition = "text comment '开方医生时间戳'")
	private String recipeDocTimeStamp;
	@Column(name = "is_recipe_doc_ca_bit", columnDefinition = "bit comment '开方医生是否签名'")
	private Boolean isRecipeDocCa;
	@Column(name = "trial_pharm_signature_value_nvarchar", columnDefinition = "text comment '审方药师数字签名值'")
	private String trialPharmSignatureValue;
	@Column(name = "trial_pharm_signcertificate_nvarchar", columnDefinition = "text comment '审方药师数字证书'")
	private String trialPharmSigncertificate;
	@Column(name = "trial_pharm_signature_xml_nvarchar", columnDefinition = "text comment '审方药师数字签名对象数据结构XML'")
	private String trialPharmSignatureXml;
	@Column(name = "trial_pharm_time_stamp_nvarchar", columnDefinition = "text comment '审方药师时间戳'")
	private String trialPharmTimeStamp;
	@Column(name = "is_trial_pharm_ca_bit", columnDefinition = "bit comment '审方医生是否签名'")
	private Boolean isTrialPharmCa;

// 
// 
// 
// 
// 
}
